package chap3;
import java.util.Scanner;
public class Task9 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("我行我素购物管理系统> 幸运抽奖");
        System.out.println();
        System.out.print("请输入4位会员号：");
        int a = input.nextInt();
        int b = a % 1000 / 100;
        int random = (int) (Math.random() * 10);
        if (b == random) {
            System.out.println(a + "号客户是幸运客户，获精美Mp3一个。");
        } else {
            System.out.println(a + "号客户，谢谢您的支持！");
        }
    }
}
